package com.minsu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("locations")
public class Location {
    @TableId(type = IdType.ASSIGN_UUID)
    private String locationId;


    private String district;

    private String area;

    private BigDecimal latitude;

    private BigDecimal longitude;


    private LocalDateTime createdAt;

    @TableField(exist = false)
    private List<Listing> listings;

} 